home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / UPC12BS1.ZIP / MAKEFILE < prev    next >
Text File  |  1993-10-04  |  41KB  |  1,415 lines

  1. # *--------------------------------------------------------------------*
  2. # *     Program:        MAKEFILE                15 May 1989            *
  3. # *     Author:         Andrew H. Derbyshire                           *
  4. # *                     Kendra Electronic Wonderworks                  *
  5. # *                     P.O. Box 132                                   *
  6. # *                     Arlington, MA 02174                            *
  7. # *     Function:       Build UUPC/extended from source files          *
  8. # *     Processor:      Borland MAKE version 3.5                       *
  9. # *     External files: MASM or TASM    (8088 Assembler)               *
  10. # *                     BCC             (Borland C++ 3.1 compiler)     *
  11. # *                     LINK or TLINK   (MS-DOS Linker)                *
  12. # *                     TDSTRIP         (Turbo debugger utility).      *
  13. # *                     MOVE.COM        (Rename files between          *
  14. # *                                     directories)                   *
  15. # *                     Input source files.                            *
  16. # *                                                                    *
  17. # *   Changes Copyright (c) 1989-1993 by Kendra Electronic             *
  18. # *   Wonderworks.                                                     *
  19. # *                                                                    *
  20. # *   All rights reserved except those explicitly granted by the       *
  21. # *   UUPC/extended license agreement.                                 *
  22. # *                                                                    *
  23. # *     Note:   This file and the associated sources really do         *
  24. # *             require the Borland C++ 3.1 compiler; various          *
  25. # *             functions within the source call ANSI functions        *
  26. # *             not available in older versions of the compiler.       *
  27. # *                                                                    *
  28. # *     Note:   MOVE can be created by putting a COPY followed by a    *
  29. # *             ERASE in a MOVE.BAT file.  This is slower than a true  *
  30. # *             move program (which just renames between directories), *
  31. # *             but life is hard.                                      *
  32. # *--------------------------------------------------------------------*
  33. #
  34. #     $Id: makefile 1.32 1993/10/04 15:51:54 ahd Exp $
  35. #
  36. #     Revision history:
  37. #     $Log: makefile $
  38. #         Revision 1.32  1993/10/04  15:51:54  ahd
  39. #         Use only root name for adding 00readme.now
  40. #
  41. #         Revision 1.31  1993/10/04  15:41:24  ahd
  42. #         Drop unneeded variables from definition file for nested make commands
  43. #         Include 00readme.now in all archives
  44. #         Generate final release names for all archives
  45. #
  46. #         Revision 1.30  1993/10/04  03:56:57  ahd
  47. #         Build doc zip seperately
  48. #
  49. #         Revision 1.29  1993/10/02  23:45:02  ahd
  50. #         Don't build rnews for windows
  51. #
  52. #         Revision 1.28  1993/10/02  19:06:24  ahd
  53. #         Use full path names to aid debugging
  54. #
  55. #         Revision 1.27  1993/10/01  01:24:32  ahd
  56. #         Force source rebuild more often
  57. #
  58. #         Revision 1.26  1993/09/29  13:17:11  ahd
  59. #         Correct deletion of debugger (*.TDS) files under Windows
  60. #
  61. #         Revision 1.25  1993/09/29  04:47:51  ahd
  62. #         Add unique signal handler for port suspending
  63. #
  64. #         Revision 1.24  1993/09/27  02:41:37  ahd
  65. #         Use full source path for files to aid in DOS debugging
  66. #
  67. #         Revision 1.23  1993/09/27  00:44:01  ahd
  68. #         Make build slient
  69. #
  70. #         Revision 1.22  1993/09/23  03:26:11  ahd
  71. #         Make mail medium model
  72. #
  73. #         Revision 1.21  1993/09/20  04:35:34  ahd
  74. #         Borland C++ for OS/2 1.0 support
  75. #         TCP/IP support from Dave Watt
  76. #         't' protocol support
  77. #
  78. #         Revision 1.20  1993/08/03  12:19:38  ahd
  79. #         Upper case names
  80. #
  81. #         Revision 1.19  1993/08/02  03:21:28  ahd
  82. #         Rename zip files
  83. #         use ZIP instead of PKZIP
  84. #         explicitly use MAKER for nested makes (need MAKE for master to
  85. #         keep ZIP from running of out DOS memory)
  86. #
  87. #         Revision 1.18  1993/07/31  16:20:41  ahd
  88. #         Clean-up in support of Windows versions
  89. #
  90. #         Revision 1.17  1993/07/22  23:18:38  ahd
  91. #         Rename UUPCLIBW
  92. #
  93. #         Revision 1.16  1993/06/06  15:03:51  ahd
  94. #         Move to release 1.12a
  95. #
  96. #         Revision 1.15  1993/05/30  16:05:22  ahd
  97. #         Del workfile to correct pkzip archiving too much
  98. #
  99. #         Revision 1.14  1993/05/16  13:17:21  ahd
  100. #         Rename nmake to mscmake
  101. #
  102. #         Revision 1.13  1993/04/19  13:16:08  ahd
  103. #         Begin version 1.11z
  104. #
  105. #         Revision 1.12  1993/04/16  02:43:27  ahd
  106. #         Do not archive bad rn source
  107. #
  108. #         Revision 1.11  1993/04/16  02:31:47  ahd
  109. #         Drop broken rn/newsetup from build for now
  110. #
  111. #         Revision 1.10  1993/04/11  21:09:10  ahd
  112. #         Drop GNU oriented Makefile
  113. #
  114. #       Revision 1.9  1992/12/30  12:40:31  plummer
  115. #       Update version
  116. #
  117. #       Revision 1.9  1992/12/30  12:40:31  plummer
  118. #       Update version
  119. #
  120. #       Revision 1.8  1992/12/18  13:05:00  ahd
  121. #       Drop system aliases
  122. #
  123. #       Revision 1.7  1992/12/11  12:43:53  ahd
  124. #       Add aliases file to list of samples
  125. #
  126. #       Revision 1.6  1992/12/04  00:59:25  ahd
  127. #       Add copyright statements
  128. #
  129. #       Revision 1.5  1992/11/29  22:39:15  ahd
  130. #       Add *.txt files to documentation archive (for RFC's)
  131. #
  132. #       Revision 1.4  1992/11/23  02:43:59  ahd
  133. #       Add scripts (batch files) to RCS
  134. #       Change expire.com and rnews.com to exe files
  135. #
  136. #       Revision 1.3  1992/11/22  21:04:42  ahd
  137. #       Add normalize() to build
  138. #
  139. #       Revision 1.2  1992/11/18  01:34:57  ahd
  140. #       Drop -k flag
  141. #
  142. #       Revision 1.1  1992/11/10  04:11:14  ahd
  143. #       Initial revision
  144. #
  145. #       Revision 1.2  1992/05/03  17:19:14  ahd
  146. #       Add library inclusion to generation of small .COM files
  147.  
  148. .autodepend
  149.  
  150. .silent
  151.  
  152. #       The memory model to be built, and other environment
  153. #       specific information
  154.  
  155. WINMODEL=l
  156.  
  157. !if $d(__OS2__)
  158. MODEL=2
  159. SUFFIX   = $(MODEL)
  160. PSUFFIX  = 2
  161. DEFFILE  = $(TMP)\UUPCOS23.TMP
  162. !elif $d(WINDOWS)
  163. MODEL    = $(WINMODEL)
  164. SUFFIX   = w$(MODEL)
  165. PSUFFIX  = w
  166. DEFFILE  = $(TMP)\UUPCWIND.TMP
  167. !else
  168. !if !$d(MODEL)
  169. MODEL    = s
  170. !endif
  171. SUFFIX   = $(MODEL)
  172. PSUFFIX  =
  173. DEFFILE  =
  174. !endif
  175.  
  176. #       Silly hack to allow back slash as last character in variable
  177. SRC      = e:/src/uupc/
  178. SRCSLASH = $(SRC:/=\)
  179.  
  180. # *--------------------------------------------------------------------*
  181. # *   Our release number.  This is updated each time we ship it        *
  182. # *   out to some unsuspecting user, or sometimes when we do a         *
  183. # *   major fix even if we don't ship it out to the lusers.  ANY       *
  184. # *   VERSION NOT DONE ON kendra SHOULD BE TAGGED AS N.NNAm, WHERE     *
  185. # *   N.NNA IS THE NUMBER UUPC was shipped as, and 'm' any string      *
  186. # *   to indentify your special version.  Just upping the              *
  187. # *   distributed version number will confuse you AND me.              *
  188. # *--------------------------------------------------------------------*
  189.  
  190. VERS = 1.12b
  191.  
  192. # *--------------------------------------------------------------------*
  193. # *                           Directories                              *
  194. # *--------------------------------------------------------------------*
  195.  
  196. !if !$d(TMP)
  197. TMP     = \TMP
  198. !endif
  199.  
  200.  
  201. DOCS    = $(SRCSLASH)DOCS
  202. CONF    = \UUPC
  203. LIB     = $(SRCSLASH)LIB
  204. OBJ     = $(SRCSLASH)OBJBC$(SUFFIX)
  205. MAIL    = $(SRCSLASH)MAIL
  206. RNEWS   = $(SRCSLASH)RNEWS
  207. RN      = $(SRCSLASH)RN
  208. UTIL    = $(SRCSLASH)UTIL
  209. UUCICO  = $(SRCSLASH)UUCICO
  210. TEST    = $(SRCSLASH)TEST
  211. UUCP    = $(SRCSLASH)UUCP
  212. WINWORD = $(SRCSLASH)WINWORD
  213. SCRIPT  = $(SRCSLASH)SCRIPTS
  214. MAP     =
  215. .path.obj  = $(OBJ)
  216.  
  217. !if !$d(ARCHIVE)
  218. ARCHIVE = $(SRCSLASH)$(VERS)
  219. !endif
  220.  
  221. !if !$d(PROD)
  222. !if $d(__OS2__)
  223. PROD    = \UUPC\OS2BIN32
  224. !else
  225. PROD    = \UUPC\BIN
  226.